
var $menu = $(".dropdown-menu");
    $menu.menuAim({
    activate: activateSubmenu,
    deactivate: deactivateSubmenu,
    exitMenu: exitMenus
});
function activateSubmenu(row) {
    var $row = $(row),
    submenuId = $row.data("submenuId"),
    $submenu = $("#" + submenuId),
    height = $menu.outerHeight(),
    width = $menu.outerWidth();
    $submenu.css({
    display: "block"
    });
    $("#li" + submenuId + " a.atop").addClass("hover");
}
function deactivateSubmenu(row) {
    var $row = $(row),
    submenuId = $row.data("submenuId"),
    $submenu = $("#" + submenuId);
    $submenu.css("display", "none");
    $("#li" + submenuId + " a.atop").removeClass("hover");
}
$('.dropdown-menu').mouseenter(function() {
    $('.dropdown-menu').addClass("active");
});
function exitMenus() {
    $('.menuleft').mouseleave(function() {
    $('.popover').css("display", "none");
    $(".dropdown-menu a.atop").removeClass("hover");
    $('.dropdown-menu').removeClass("active");
    });
    return true;
}